package cn.kgc.shiro02.mapper;

import cn.kgc.shiro02.entity.Role;
import cn.kgc.shiro02.entity.User;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/6/1
 */
public interface UserMapper {

    //添加用户
    int  saveUser(User user);

    //查询用户信息
    User selectByUserName(String username);

    List<Role> selectRolesByUserName(String username);

}
